import request from '@/utils/request'

// 查询地址表列表
export function listChinas(query) {
  return request({
    url: '/accountSet/chinas/list',
    method: 'get',
    params: query
  })
}
// 三级联动
export function getlistChinas() {
  return request({
    url: '/accountSet/chinas/getList',
    method: 'get',
  })
}

// 查询地址表详细
export function getChinas(id) {
  return request({
    url: '/accountSet/chinas/' + id,
    method: 'get'
  })
}

// 新增地址表
export function addChinas(data) {
  return request({
    url: '/accountSet/chinas',
    method: 'post',
    data: data
  })
}

// 修改地址表
export function updateChinas(data) {
  return request({
    url: '/accountSet/chinas',
    method: 'put',
    data: data
  })
}

// 删除地址表
export function delChinas(id) {
  return request({
    url: '/accountSet/chinas/' + id,
    method: 'delete'
  })
}
